package high.concurrent.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 购物车商品项请求参数
 */
@Data
@ApiModel(value = "购物车商品想", description = "购物车商品项请求参数")
public class ProductItemRequest {

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id", example = "1")
    @JsonProperty(value = "product_id")
    private Long productId;

    /**
     * 购买数量
     */
    @ApiModelProperty(value = "购买数量", example = "2")
    @JsonProperty(value = "buy_num")
    private Integer buyNum;
}
